package com.esri.core.portal;

import com.esri.core.map.popup.PopupInfo;
import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.JsonToken;

/* loaded from: classes.dex */
public class WebMapPopupInfo {
    PopupInfo a;
    String b;

    WebMapPopupInfo() {
    }

    public PopupInfo getPopupInfo() {
        return this.a;
    }

    public void setPopupInfo(PopupInfo popupInfo) {
        this.a = popupInfo;
    }

    public String getLayerUrl() {
        return this.b;
    }

    public void setLayerUrl(String str) {
        this.b = str;
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public static WebMapPopupInfo fromJson(JsonParser jsonParser) throws PortalException {
        try {
            if (jsonParser.getCurrentToken() != JsonToken.START_OBJECT) {
                return null;
            }
            WebMapPopupInfo webMapPopupInfo = new WebMapPopupInfo();
            webMapPopupInfo.a = PopupInfo.fromJson(jsonParser);
            return webMapPopupInfo;
        } catch (Exception e) {
            throw new PortalException("Unable to construct a WebMapPopupInfo.", e);
        }
    }
}
